package com.flyduck.modules.schedule.web;

import com.flyduck.common.annotation.Log;
import com.flyduck.common.vo.PageResult;
import com.flyduck.common.vo.QueryVo;
import com.flyduck.modules.schedule.service.SysScheduleJobLogService;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @program: flyduck-admin
 * @description: 定时任务日志
 * @author: flyduck
 * @create: 2020-06-17 10:10
 **/
@Controller
@RequestMapping("/scheduleLog")
public class SysScheduleJobLogController {

    @Autowired
    private SysScheduleJobLogService sysScheduleJobLogService;

    /**
     * 分页数据
     * @return
     */
    @Log(value = "定时任务日志页面数据查询")
    @RequiresPermissions("scheduleLog:list")
    @PostMapping("/list")
    @ResponseBody
    public PageResult findPage(QueryVo queryVo){
        return sysScheduleJobLogService.findPage(queryVo);
    }
}
